home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: chang.unx.sas.com!walker
- From: walker@chang.unx.sas.com (Doug Walker)
- Subject: Re: SasC linker Error:
- Sender: news@unx.sas.com (Noter of Newsworthy Events)
- Message-ID: <DnLnMG.7C9@unx.sas.com>
- Date: Fri, 1 Mar 1996 17:37:28 GMT
- X-Nntp-Posting-Host: chang.unx.sas.com
- References: <dkauppDnEzzs.FsD@netcom.com>
- Organization: SAS Institute Inc.
-
- In article <dkauppDnEzzs.FsD@netcom.com>, Blitter <dkaupp@netcom.com> wrote:
- > Can someone tell me what may be causing these errors? MOBtrigger is a
- >BOOL and as far a I know, its just changed using TRUE and FALSE.
- >
- > If someone can point me in the right direction I would appriciate it :).
-
- You have a data definition in a header file. You should have a DECLARATION
- in the header file, and put the definition in a C file somewhere.
-
- Look for a statement like
-
- BOOL MOBtrigger;
-
- in the header file and replace it with
-
- extern BOOL MOBtrigger;
-
- then edit any one of your .c files that includes the header and put
-
- BOOL MOBtrigger;
-
- in it. Note that MOBtrigger will be initialized to zero by default
- (since it is an extern), but if you have an explicit intializer you
- need to move the initializer into the .c file. You should not have
- an initializer in the .h file.
-
- Example with initializer:
-
- BOOL MOBtrigger = TRUE; /* Not in header file! */
-
- --
- ***** / walker@unx.sas.com
- *|_o_o|\\ Doug Walker< BIX, Portal: djwalker
- *|. o.| || \ AOL: weissblau
- | o |//
- ======
- Any opinions expressed are mine, not those of SAS Institute, Inc.
-
-